package com.example.xuanke.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("student_course")
public class StudentCourseEntity {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    @TableField("student_no")
    private String studentNo;
    
    @TableField("course_id")
    private Long courseId;
    
    @TableField("create_time")
    private LocalDateTime createTime;
    
    @TableField(exist = false)
    private StudentEntity student;
    
    @TableField(exist = false)
    private CourseEntity course;
} 